<div class="row"> <h3 class="page-header">实验项目分配<small>/设置</small></h3></div>
<div class="row">
    <div class="panel panel-default">
        <div class="panel-body">
            <form id="myform" class="form-horizontal">          
                <div class="form-group">
                    <label class="col-sm-2 control-label">实验项目名称：<span class="c-red">*</span></label>
                    <div class="col-sm-6 input-group">
                        <select class="form-control" name="syxm_id">
                                 <volist name='list_xm' id='list_xm'>
                                   <option value="{$list_xm.id}"> 
                                     {$list_xm.name}
                                   </option>
                                 </volist>
                        </select>
                     </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">使用课节：<span class="c-red">*</span></label>
                    <div class="col-sm-6 input-group">
                        <select class="form-control" name="jc">
                            <option value="1">第一节课</option>
                            <option value="2">第二节课</option>
                            <option value="3">第三节课</option>
                            <option value="4">第四节课</option>
                            <option value="5">第五节课</option> 
                            <option value="6">第六节课</option>
                            <option value="7">第七节课</option>
                            <option value="8">第八节课</option>
                            <option value="9">第九节课</option>
                            <option value="10">第十节课</option>
                            <option value="11">第十一节课</option>
                            <option value="12">第十二节课</option>
                        </select>
                     </div>
                </div>

               <div class="form-group">
                    <label class="col-sm-2 control-label">班级：<span class="c-red">*</span></label>
                    <div class="col-sm-6 input-group">
                            <input class="form-control required" name="class">
                     </div>
                </div>

               <div class="form-group">
                    <label class="col-sm-2 control-label">人数：<span class="c-red">*</span></label>
                    <div class="col-sm-6 input-group">
                            <input class="form-control required" name="num">
                     </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">教师：<span class="c-red">*</span></label>
                  <div class="col-sm-6 input-group">
                            <input class="form-control required" name="teacher" value="{$Think.session.adminInfo.name}">
                     </div>
                </div>
                <input type="hidden" id="jcs"/>
                <div class="form-group">
                    <div class="col-sm-offset-3 col-sm-5">
                        <button class="btn btn-primary" type="submit">保存</button>
                        <a href="{:U('Jxsygl/syxmfp')}"><div class=" btn btn-default" type="button">返回</div></a>
                    </div>  
                </div>
                <input type='hidden' name='id' value='{$info.id}'>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    $('#jc option').click(function(){
        $("#jcs").val("$('#jc').options[$('#jc').selectedIndex].data('id')");
    })
</script>
